﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/Admin.master" AutoEventWireup="true" CodeBehind="EmployeeList.aspx.cs" Inherits="Web.Admin.EmployeeList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
            <div class="grid_12">
                <h2>Employee List</h2>                   
                <hr />
                <div class="bottom-spacing">
                
                    <!-- Button -->
                    <div class="float-right">
                        <a href="EmployeeEntry.aspx" class="button">
                        	<span><img src="../images/plus-small.gif" width="12" height="9" alt="Add New User" /> Add New Employee</span>
                        </a>
                    </div>
                                        
                </div>
                
                
                <!-- Example table -->
                <div class="module">
                	<h2><span>List of all Users</span></h2>
                    
                    <div class="module-table-body">  
                    <asp:Repeater ID="repeaterTable" runat="server" 
                            OnItemCommand="repeaterTable_ItemCommand" 
                            Onitemdatabound="repeaterTable_ItemDataBound">
                        <HeaderTemplate>
                            <table id="myTable" class="tablesorter">
                        	    <thead>
                                    <tr>
                                        <th style="width:5%">#</th>
                                        <th style="width:20%">Fullname</th>
                                        <th style="width:21%">Division</th>
                                        <th style="width:13%">Position</th>
                                        <th style="width:13%">Date Added</th>
                                        <th style="width:13%">Date Modified</th>
                                        <th style="width:15%"></th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                                <tr>
                                    <td class="align-center"><%# Eval("Id") %></td>
                                    <td><a href="EmployeeEntry.aspx?id=<%#Eval("Id")%>"><asp:Literal runat="server" ID="FullnameLit" Text="Emmanuel"></asp:Literal></a></td>
                                    <td><asp:Literal runat="server" ID="DivisionLit"></asp:Literal></td>
                                    <td><asp:Literal runat="server" ID="PositionLit"></asp:Literal></td>
                                    <td><asp:Literal runat="server" ID="DateAddedLiteral"></asp:Literal></td>
                                    <td><asp:Literal runat="server" ID="ModifiedDateLiteral"></asp:Literal></td>
                                    <td>
                                    	<input type="checkbox" id="selectedChkbox" runat="server" />                                        
                                        <a href="EmployeeEntry.aspx?id=<%#Eval("Id")%>"><img src="/images/pencil.gif" width="16" height="16" alt="edit" /></a>                                                                                
                                        <asp:ImageButton runat="server" ID="deleteBtn" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete" CommandArgument=<%#Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />
                                    </td>
                                </tr>                        
                        </ItemTemplate>
                        <FooterTemplate>
                                </tbody>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>                  	
                                                                    
                        <div class="pager" id="pager">                            
                            <div>
                                <asp:Button id="DeleteSelectedBtn" runat="server" Text="Delete Selected" CssClass="submit-green" OnClientClick="return confirm('Delete all selected record?');" /> 
                            </div>                            
                        </div>

                        <div style="clear: both"></div>
                     </div> <!-- End .module-table-body -->
                </div> <!-- End .module -->
                                                                                                    
			</div> <!-- End .grid_12 -->
</asp:Content>
